package com.siyu.tickets.entity.base;

import java.io.Serializable;

public abstract class BaseSupplier implements Serializable {

	private static final long serialVersionUID = -2804510946722484980L;

	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String title;
	private java.lang.String master;
	private java.lang.String imgLicense;
	private java.lang.String imgPhoto;
	private java.lang.String address;
	private java.lang.String mobile;
	private java.lang.String phone;

	private java.lang.String bankName;
	private java.lang.String bankAcctNo;
	private java.lang.String bankAcctName;

	private java.lang.String route;
	private java.lang.String remark;

	private java.math.BigDecimal money;

	private java.util.Date createTime;

	private com.siyu.tickets.entity.Supplier parent;

	private com.siyu.tickets.entity.Element city;

	// one to one
	private com.siyu.tickets.entity.SysUser user;

	public java.lang.Integer getId() {
		return id;
	}

	public void setId(java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}

	public com.siyu.tickets.entity.SysUser getUser() {
		return user;
	}

	public void setUser(com.siyu.tickets.entity.SysUser user) {
		this.user = user;
	}

	public java.lang.String getTitle() {
		return title;
	}

	public void setTitle(java.lang.String title) {
		this.title = title;
	}

	public java.lang.String getMaster() {
		return master;
	}

	public void setMaster(java.lang.String master) {
		this.master = master;
	}

	public java.lang.String getImgLicense() {
		return imgLicense;
	}

	public void setImgLicense(java.lang.String imgLicense) {
		this.imgLicense = imgLicense;
	}

	public java.lang.String getImgPhoto() {
		return imgPhoto;
	}

	public void setImgPhoto(java.lang.String imgPhoto) {
		this.imgPhoto = imgPhoto;
	}

	public java.lang.String getAddress() {
		return address;
	}

	public void setAddress(java.lang.String address) {
		this.address = address;
	}

	public java.lang.String getMobile() {
		return mobile;
	}

	public void setMobile(java.lang.String mobile) {
		this.mobile = mobile;
	}

	public java.lang.String getPhone() {
		return phone;
	}

	public void setPhone(java.lang.String phone) {
		this.phone = phone;
	}

	public java.lang.String getBankName() {
		return bankName;
	}

	public void setBankName(java.lang.String bankName) {
		this.bankName = bankName;
	}

	public java.lang.String getBankAcctNo() {
		return bankAcctNo;
	}

	public void setBankAcctNo(java.lang.String bankAcctNo) {
		this.bankAcctNo = bankAcctNo;
	}

	public java.lang.String getBankAcctName() {
		return bankAcctName;
	}

	public void setBankAcctName(java.lang.String bankAcctName) {
		this.bankAcctName = bankAcctName;
	}

	public java.lang.String getRoute() {
		return route;
	}

	public void setRoute(java.lang.String route) {
		this.route = route;
	}

	public java.lang.String getRemark() {
		return remark;
	}

	public void setRemark(java.lang.String remark) {
		this.remark = remark;
	}

	public java.math.BigDecimal getMoney() {
		return money;
	}

	public void setMoney(java.math.BigDecimal money) {
		this.money = money;
	}

	public java.util.Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(java.util.Date createTime) {
		this.createTime = createTime;
	}

	public com.siyu.tickets.entity.Supplier getParent() {
		return parent;
	}

	public void setParent(com.siyu.tickets.entity.Supplier parent) {
		this.parent = parent;
	}

	public com.siyu.tickets.entity.Element getCity() {
		return city;
	}

	public void setCity(com.siyu.tickets.entity.Element city) {
		this.city = city;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof com.siyu.tickets.entity.Supplier))
			return false;
		else {
			com.siyu.tickets.entity.Supplier user = (com.siyu.tickets.entity.Supplier) obj;
			if (null == this.getId() || null == user.getId())
				return false;
			else
				return (this.getId().equals(user.getId()));
		}
	}

	public int hashCode() {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId())
				return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}

	public String toString() {
		return super.toString();
	}

}